<%-include('./common/header.html',{css:'common'}) %>
<!-- build:css css/login.css -->
<link rel="stylesheet" href="./../styles/login.css">
<!-- endbuild -->
<style>
    .form-group.has-error .text-danger {
        display: none !important;
    }

    .brand-intro {
        color: #333;
    }

    form-control {
        padding: 2px 8px;
        line-height: 34px;
    }

    label {
        font-size: 16px !important;
        padding-top: 1 0px !important;
        font-weight: 400 !important;
        padding-bottom: 5px;
    }

    @media screen and (max-width: 1440px) {
        .w-cnter {
            width: 1000px !important;
        }
    }

    html {
        background: url(/admin/imgs/login/bg.png) no-repeat;
        background-size: cover;
    }

    .btn-primary {
        color: #fff;
        background-color: #3b3551;
        border-color: #3e3856;
        font-weight: 400;
        width: 280px;
        font-size: 16px;
        line-height: 24px;
    }

    .btn-primary:hover {
        color: #fff;
        background-color: #3b3551;
        border-color: #3e3856;
    }

    html {
        min-height: 100%;
    }

    body {
        padding-top: 0 !important;
    }

    .login-input-cnter {
        overflow: hidden;
        box-shadow: inset 0 1px 1px rgba(59, 53, 82, 0.13);
        border: 1px solid #3e3855;
        border-radius: 2px;
        display: flex;
        position:relative;
    }

    .login-input {
        padding-left: 35px;
        box-shadow: inset 0 35px 1px rgb(255, 255, 255);
        border: none !important;
        height: 34px;
        display: inline;
        width: 100%;
        font-family: Tahoma, Verdana;
        font-size: 16px;

    }

    .img-code {
        position: relative;
        top: 5px;
        cursor: pointer;
        height: 25px;
        width: 81px;
        right:-20px;
    }

    .error {
        position: relative;
        padding-top: 10px;
        color: red;
        font-weight: bold;
        font-size: 15px;
    }

    .sys-title {
        text-align: center;
        color: #3a3350;
        font-size: 24px;
        font-weight: bolder;
        padding: 15px 0;
        margin: 0;
    }

    .forget-pass {
        position: relative;
        padding-top: 15px;
        right: 0px;
    }

    form {
        border-radius: 1px;
        width: 450px;
        background: #FFF;
        margin: 0 auto;
        position: relative;
    }

    .form-ctner {
        flex: 1;
        display: flex;
        justify-items: center;
        justify-content: center;
        align-items: center;
    }

    body {
        min-width: auto !important;
        display: flex;
        flex-direction: column;
        height: 100vh;
        background-color: transparent;
        overflow-x: auto;
        overflow-y: auto;
    }

    input:-internal-autofill-selected {
        background-color: #fff !important;
        background-image: none !important;
        color: rgb(0, 0, 0) !important;

    }

    input {
        -webkit-appearance: none;
    }
    .btn-primary.disabled, .btn-primary[disabled], fieldset[disabled] .btn-primary, .btn-primary.disabled:hover, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary:hover, .btn-primary.disabled:focus, .btn-primary[disabled]:focus, fieldset[disabled] .btn-primary:focus, .btn-primary.disabled.focus, .btn-primary[disabled].focus, fieldset[disabled] .btn-primary.focus, .btn-primary.disabled:active, .btn-primary[disabled]:active, fieldset[disabled] .btn-primary:active, .btn-primary.disabled.active, .btn-primary[disabled].active, fieldset[disabled] .btn-primary.active {
        background-color: #3c3653;
        border-color: #3c3552;
    }
    .btn-primary.disabled, .btn-primary:disabled {
        color: #fff;
        background-color: #3c3653;
        border-color: #3b3551;
    }
    .btn-primary:active {
        color: #fff;
        background-color: #3c3653;
        border-color: #3b3551;
    }
    .yanzhengma:focus{
        outline: none;
        box-shadow: none;
    }
</style>
<title>小程序平台</title>
</head>
<body style="">
<!--<div style="padding:0 10px;">-->
<!--<div style="width:100%;margin:0 auto;">-->
<!--<img src="/admin/imgs/login/logo.png" alt="" style="position: relative;height: 120px;">-->
<!--</div>-->
<!--</div>-->
<div class="form-ctner">
    <form class='form-horizontal'
          id="user-form">
        <div style="padding: 40px 0px ;width: 400px;margin:0 auto;">
            <div style="padding:0 60px;">
                <br/>
                <h3 class="sys-title">小程序平台</h3>
                <br/>
                <br/>
                <br/>
                <div class="form-group" style="margin: 0 auto;">
                    <div
                            class="login-input-cnter"
                            style="">
                        <img src="/admin/imgs/login/login-user.png" alt=""
                             style="position: absolute;left: 10px;height: 20px;top: 5px;"/>
                        <input type="text"
                               style=""
                               class="form-control login-input"
                               id="validate-username"
                               placeholder="用户名" data-rule-minlength="2"
                               autocomplete="off"
                               data-rule-required='true'
                               name='userName'>
                    </div>
                </div>
                <br>
                <div class="form-group" style="margin: 0 auto;">
                    <div class="login-input-cnter">
                        <img src="/admin/imgs/login/login-pass.png" alt=""
                             style="height: 20px;top: 5px;right: 2px;position: absolute;left: 10px;"/>

                        <input type="password"
                               style=""
                               class="form-control login-input"
                               name="password"
                               id="validate-password"
                               autocomplete="off"
                               placeholder="密码" data-rule-required='true'
                               data-rule-minlength="5" data-rule-maxlength='30'>
                    </div>
                </div>
                <br/>
                <div class="form-group" style="margin: 0 auto;;">
                    <div
                            class="login-input-cnter"
                    >
                        <img src="/admin/imgs/login/login-code.png" alt=""
                             style=" height: 20px;top: 5px;position: absolute;left: 10px;"/>

                        <input
                                type="text"
                                style="width: 171px;outline:none;box-shadow: none;"
                                class="form-control login-input yanzhengma"
                                name="imgCode"
                                id="validate-code"
                                autocomplete="off"
                                placeholder="验证码" data-rule-required='true'
                                data-rule-minlength="4">
                        <img name="img-code"
                             class="img-code"
                             style=""
                             src="/api/admin/code/captcha-image" alt="">
                    </div>
                </div>
                <br/>
                <div class="form-group" style="margin: 0 auto;">
                    <div
                            style="text-align: left;" style="text-align: left;"
                    >
                        <button
                                id="submit"
                                type="submit"
                                data-loading-text="登录中...,请稍等～"
                                class="btn btn-lg btn-primary btn-block"
                                autocomplete="off"
                        >登录
                        </button>
                        <div class="forget-pass">
                            <input name="remmberme" type="checkbox"> 记住密码?
                        </div>
                        <div class="error"></div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>
<div style="text-align: center;line-height: 30px;    background: #fff;color: #38324e;">
    推荐使用360极速、谷歌浏览器获得更好的使用体验
</div>
<%- include('./common/footer.html') %>
</body>
<!-- build:js scripts/login.js  -->
<script type="text/javascript" src="./../libs/md5/md5.js"></script>
<script type="text/javascript" src="./../script/login.js"></script>
<!-- endbuild -->
</html>